package com.learn.springcloud.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.learn.dubbo.entity.user.SysUser;

/**
 * TODO
 * @author 
 */
@Mapper
public interface SysUserMapper{   
    /**
     * 根据主键查询
     */
    public SysUser getSysUserById(@Param("id")Long id); 

    /**
     * 查询出所有记录
     */
    public List<SysUser> findAllSysUser();    
    
    /**
     * 保存
     */
    public int saveSysUser(SysUser sysUser);
    
    /**
     * 根据主键更新（参数对象中的主键将作为更新条件）
     */
    public int updateSysUser(SysUser sysUser);
    
    /**
     * 根据主键删除
     */
    public int deleteSysUser(@Param("id")Long id);
}

